﻿<%@ Page Title="特色菜肴" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    Inherits="Wjtour.Web.Front.specialfood" %>

<%@ Import Namespace="Wjtour.Domain" %>
<%@ Import Namespace="Wjtour.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script language="javascript">
        $(document).ready(function () {
            $('#myTab a:first').tab('show');
            $('#mytab a').click(function (e) {
                e.preventDefault();
                $(this).tab('show');
            });
        });

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="ipage scenicpage">
        <div class="path" style="width: 668px;">您所在的位置：<a href="/">首页</a> &gt; <a href="travelindex.aspx">旅游指南</a> &gt; 特色菜肴 </div>
        <img src="css/images/tmp15.png" border="0" usemap="#Map" class="imgtitle" />
        <map name="Map" id="Map">
            <area shape="rect" coords="596,-1,637,182" href="specialsnack.aspx" />
            <area shape="rect" coords="639,0,681,181" href="specialrest.aspx" />
        </map>

        <!-- 浮动块 -->
        <div class="scenicleft travelsleft" style="margin-top: 220px;">
            <ul class="articlelist">
                <%if (data.Datas != null && data.Datas.Count > 0)
                  {%>
                <%for (int i = 0; i < data.Datas.Count; i++)
                  {
                      var item = data.Datas[i];
                %>
                <li>
                    <%if (item.isrecommend == 1)
                      { %>
                    <img src="css/images/commend.png" class="cmdimg" />
                    <%} %>
                    <%if (!string.IsNullOrEmpty(item.logo))
                      { %>
                    <a href="fooddetail.aspx?id=<%=item.id %>" target="_blank">
                        <img src="<%=item.logo %>" class="thumbs" /></a>
                    <%} %>
                    <div>
                        <h5><a href="fooddetail.aspx?id=<%=item.id %>" target="_blank"><%=item.title %></a></h5>
                        <p><%=Utility.CutString(Utility.StripHtml(item.introduce),96,true) %><a href="fooddetail.aspx?id=<%=item.id %>" target="_blank">[详情]</a></p>
                    </div>
                </li>

                <%}
                  } %>
            </ul>
            <div class="clear"></div>
            <!-- 分页 -->
            <%=PagnationHtml %>
        </div>
        <!-- 侧面-->
        <div class="scenicright travelsright">
            <img src="css/images/title01.png" />
            <div class="title"></div>
            <ul class="arlist floatlist">
                <%
                    if (caiyao != null && caiyao.Count > 0)
                    {
                        for (int i = 0; i < caiyao.Count; i++)
                        {
                            var c = caiyao[i];
                %>
                <li><span><%=(i+1) %></span><a href="fooddetail.aspx?id=<%=c.id %>" target="_blank"><%=Utility.CutString(c.title,9,false) %></a></li>

                <%}
                    }%>
            </ul>

            <img src="css/images/title02.png" style="margin-top: 15px;" />
            <div class="title"></div>
            <%
                if (xiaochi != null && xiaochi.Count > 0)
                {
                    var firstxiaochi = xiaochi.First();
            %>
            <div class="best">
                <%if (!string.IsNullOrEmpty(firstxiaochi.logo))
                  { %>
                <a href="fooddetail.aspx?id=<%=firstxiaochi.id %>" target="_blank">
                    <img src="<%=firstxiaochi.logo %>" /></a>
                <%}
                  else
                  { %>
                <a href="fooddetail.aspx?id=<%=firstxiaochi.id %>" target="_blank">
                    <img src="css/images/tmp13.png" /></a>
                <%} %>
                <div>
                    <h4><a href="fooddetail.aspx?id=<%=firstxiaochi.id %>" target="_blank"><%=firstxiaochi.title %></a></h4>
                    <span><%=Utility.CutString(Utility.StripHtml(firstxiaochi.introduce),11,true) %>[<a href="fooddetail.aspx?id=<%=firstxiaochi.id %>" target="_blank">详情</a>]</span>
                </div>
            </div>
            <ul class="arlist">
                <%for (int i = 1; i < xiaochi.Count; i++)
                  {
                      var xc = xiaochi[i];
                %>
                <li><span></span><a href="fooddetail.aspx?id=<%=xc.id %>" target="_blank"><%=Utility.CutString(xc.title,9,false) %></a></li>
                <%} %>
            </ul>
            <%} %>

            <img src="css/images/title03.png" style="margin-top: 15px;" />
            <div class="title"></div>
            <%
                if (resturants != null && resturants.Count > 0)
                {
                    var firstresturant = resturants.First();
            %>
            <div class="best">
                <%if (!string.IsNullOrEmpty(firstresturant.img))
                  { %>
                <a href="restdetail.aspx?id=<%=firstresturant.id %>" target="_blank">
                    <img src="<%=firstresturant.img %>" /></a>
                <%}
                  else
                  { %>
                <a href="restdetail.aspx?id=<%=firstresturant.id %>" target="_blank">
                    <img src="css/images/tmp13.png" /></a>
                <%} %>
                <div>
                    <h4><%=Utility.CutString(firstresturant.resturantname,9,false) %></h4>
                    <span><%=Utility.CutString(Utility.StripHtml(firstresturant.introduce),11,true) %>[<a href="restdetail.aspx?id=<%=firstresturant.id %>" target="_blank">[详情</a>]</span>
                </div>
            </div>
            <ul class="arlist">
                <%for (int i = 1; i < resturants.Count; i++)
                  {
                      var resturant = resturants[i];
                %>
                <li><span></span><a href="restdetail.aspx?id=<%=resturant.id %>" target="_blank"><%=Utility.CutString(resturant.resturantname,9,false) %></a></li>
                <%} %>
            </ul>
            <%} %>
            <div class="clear"></div>
        </div>
    </div>
</asp:Content>
